//
//  MeCollectionViewCell.m
//  Budejie
//
//  Created by 远成物流 on 2017/6/1.
//  Copyright © 2017年 陈梦佳. All rights reserved.
//

#import "MeCollectionViewCell.h"
#import "MeCollectionViewModel.h"
#import <SDWebImage/UIImageView+WebCache.h>

@interface MeCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImg;
@property (weak, nonatomic) IBOutlet UILabel *textLab;

@end

@implementation MeCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setItem:(MeCollectionViewModel *)item{
    _item = item;
    
    [_iconImg sd_setImageWithURL:[NSURL URLWithString:item.icon]];
    _textLab.text = item.name;
}

@end
